import {
  BrowserRouter as Router,
  Route,
  Link,
  Switch,
  Redirect,
} from 'react-router-dom'
import Login from './pages/Login'
import Layout from './pages/Layout'
function App() {
  return (
    <div className="App">
      <Router>
        <Switch>
          <Redirect exact from="/" to="login"></Redirect>
          <Route path="/layout" component={Layout}></Route>
          <Route path="/login" component={Login}></Route>
        </Switch>
      </Router>
    </div>
  )
}

export default App
